import request from '@/utils/request'
//获取所有省份
export function getAllProvince() {
  return request.get('/position/allProvince')
}
//获取根据省份获取城市
export function getCityAsProvinceCode(provinceCode) {
  return request.get(`/position/city/${provinceCode}`)
}
// 获取所有城市
export function getAllCity() {
  return request.get('/position/allCity')
}
/**
 * 获取区县
 * @param {城市id} code 
 */
export function getCounty(code) {
  return request.get('/position/county/' + code)
}



